<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加页面</title>
</head>
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<body>

<form action="/add.do" method="post">
    <table class="table table-striped table-bordered table-hover table-center table-condensed">
        <tr>
            <td>手机名称：</td>
            <td><input type="text" name="name"></td>
        </tr>
        <tr>
            <td>手机价格：</td>
            <td><input type="text" name="price"></td>
        </tr>
        <tr>
            <td>生产日期：</td>
            <td><input type="date" name="date"></td>
        </tr>
        <tr>
            <td>热卖：</td>
            <td>
                <input type="radio" name="isHot" value="1" checked>是
                <input type="radio" name="isHot" value="0">否
            </td>
        </tr>
        <tr>
            <td>商品描述：</td>
            <td>
                <textarea cols="25px" rows="8px" name="description"></textarea>
            </td>
        </tr>
        <tr>
            <td>品牌：</td>
            <td>
                <select name="typeid">
                    <option>全部</option>
                    <c:forEach items="${types}" var="type">
                        <option value="${type.tid}">${type.tname}</option>
                    </c:forEach>
                </select>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit"value="新增">
                <input type="reset" value="重置">
                <input type="button" value="返回" onclick="window.history.back()">
            </td>
        </tr>

    </table>

</form>
</body>
</html>
